package com.netcracker.studportal.server.junit_test;

import com.netcracker.studportal.server.dao.*;
import com.netcracker.studportal.server.util.FactoryDAO;

import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.textui.TestRunner;

public class TestFactoryDAO extends TestCase {
	FactoryDAO f=new FactoryDAO();
	
	public TestFactoryDAO(String testName) {
        super(testName);
    }
	
	public void testExamDAO() {
		Object s=f.getExamDAO();
		assertTrue(s instanceof ExamDAO);
	}
	
	public void testExamWithResultDAO() {
		Object s=f.getExamWithResultDAO();
		assertTrue(s instanceof ExamWithResultDAO);
	}
	
	public void testFacultyDAO() {
		Object s=f.getFacultyDAO();
		assertTrue(s instanceof FacultyDAO);
	}
	
	public void testMaterialDAO() {
		Object s=f.getMaterialDAO();
		assertTrue(s instanceof MaterialDAO);
	}
	
	public void testProfessorDAO() {
		Object s=f.getProfessorDAO();
		assertTrue(s instanceof ProfessorDAO);
	}
	
	public void testStudentDAO() {
		Object s=f.getStudentDAO();
		assertTrue(s instanceof StudentDAO);
	}
	
	public void testSubjectDAO() {
		Object s=f.getSubjectDAO();
		assertTrue(s instanceof SubjectDAO);
	}
	
	public void testUniversityDAO() {
		Object s=f.getUniversityDAO();
		assertTrue(s instanceof UniversityDAO);
	}
	
	public void testUsersDAO() {
		Object s=f.getUsersDAO();
		assertTrue(s instanceof UserDAO);
	}
	
}
